home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The AGA Experience 2
/
agavol2.iso
/
software
/
utilities
/
emulation
/
zxam spectrum
/
zxam_rexx
/
english
/
savescr.zxam
< prev
next >
Wrap
Text File
|
1995-07-31
|
701b
|
29 lines
/* this script saves the Spectrum's raw screen to a file */
/* test if emulator is present */
address command
if ~show(ports,ZXAM_REXX) then do
requestchoice 'title "ZXAM Script error..." body "I can''t find the emulator''s port!!" gadgets "AARGH!"'
exit
end
/* SAVE requester */
oldpath=zxamactsavepath()
oldpattern=zxamactpattern()
zxampattern('#?.scr')
nombre=zxamsaverequester('Name for the SCR file...')
zxamsavepath(oldpath)
zxampattern(oldpattern)
if nombre='' then exit 0 /* CANCEL */
/* open file */
if ~open('fichero',nombre,'W') then exit 0
/* write the 6912 bytes of screen */
dummy=writech('fichero',zxamgetmem(16384,6912))
dummy=close('fichero')
exit